//
//  KSRefundDetailInfoTableViewCell.swift
//  Supermarket
//
//  Created by liuxm on 2017/9/30.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

/// 退款详情
class KSRefundDetailInfoTableViewCell: UITableViewCell {

    @IBOutlet weak var applyForTimeLabel: UILabel!
    @IBOutlet weak var isSalesBackLabel: UILabel!
    @IBOutlet weak var introLabel: UILabel!
    @IBOutlet weak var moneyLabel: UILabel!
    @IBOutlet weak var orderNumberLabel: UILabel!
    @IBOutlet weak var typeLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    func setDataWithModel(model: KSOrderRefundDetailDataModel) {
        applyForTimeLabel.text = "申请时间：" + model.verify_time!
        var str = "需要"
        if model.is_shipment == 0 {
            str = "不需要"
        }
        isSalesBackLabel.text = "是否需要退货：" + str
        introLabel.text = "退货说明：" + model.remark!
        moneyLabel.text = "退款金额：" + model.money!
        var orderType = "退款单"
        if model.type == 2 {
            orderType = "返厂退款"
        } else if model.type == 3 {
            orderType = "未收到货"
        }
        typeLabel.text = "退单类型：" + orderType
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
